getOrPut

fun getOrPut(name: String, export: Boolean, default: () -> String): String

Get name from the environment, or set default for name and return it.

Follows the Environment's export setting by default.

Sources

js source
Link copied to clipboard